package cn.com.shopec.erp.stock.service;

import java.util.List;

import cn.com.shopec.erp.common.page.PageFinder;
import cn.com.shopec.erp.common.page.PageQuery;
import cn.com.shopec.erp.stock.entity.StockHistory;
import cn.com.shopec.erp.stock.vo.StockHistoryVo;

/**
 * @ClassName: IStockHistoryService
 * @Description: 库存变更记录service接口
 * @author: zengxuezhou
 * @date: 2016年11月28日 下午2:29:51
 */
public interface IStockHistoryService {

	/**
	 * 分页查询库存变更信息
	 * 
	 * @param stockHistory
	 * @param pageQuery
	 * @return
	 */
	PageFinder<StockHistoryVo> queryStockHistoryList(StockHistoryVo stockHistory, PageQuery pageQuery);

	/**
	 * 不带分页查询库存变更信息
	 * @param stockHistory
	 * @return
	 */
	List<StockHistoryVo> queryStockHistoryList(StockHistoryVo stockHistory);
	
	/**
	 * 添加库存变更信息
	 * 
	 * @param stockHistory
	 * @return
	 * @throws Exception
	 */
	boolean addStockHistory(StockHistory stockHistory) throws Exception;

	/**
	 * 根据id删除库存变更记录
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	boolean delStockHistoryById(String id) throws Exception;

	/**
	 * 查询仓库的记录数
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	int getHistoryCountByWhNo(String whNo);

}
